package com.mi.system.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * User login request DTO
 *
 * @author jin_huaquan
 * @version 1.0
 * @date 2021/11/4 14:14
 */
@ApiModel(value = "UserLoginRequestDTO对象", description = "用户登录请求")
@Data
public class UserLoginRequestDTO {

    @ApiModelProperty(value = "用户账号", required = true)
    @NotBlank(message = "用户账号不能为空")
    private String username;

    @ApiModelProperty(value = "用户密码", required = true)
    @NotBlank(message = "用户密码不能为空")
    private String password;
}
